Give\Donations\Repositories\DonationRepository A

Total Complexity 54
Dependencies 15
Dependents 3
Total lines 556
Lines of code 304
Logical lines of code 124
Comment lines 139
Methods 24
Properties 2

Methods 24

Method Rating Maintainability Complexity Lines of code
getCoreDonationMetaForDatabase()
A
41 9 57
validateDonation()
A
57 9 16
insert()
A
44 6 46
update()
S
50 3 28
delete()
S
56 2 19
getPersistedDonationStatus()
S
71 3 6
prepareQuery()
S
58 1 17
getSequentialId()
S
68 2 7
getFormTitle()
S
66 2 9
getDefaultDonationMode()
S
75 2 4
deriveLegacyDonationParentId()
S
78 2 3
queryBySubscriptionId()
S
60 1 14
getTotalDonationCountByDonorId()
S
63 1 12
queryByDonorId()
S
62 1 12
queryByGatewayTransactionId()
S
64 1 11
getAllDonationIdsByDonorId()
S
65 1 10
getFirstDonation()
S
72 1 6
__construct()
S
80 1 3
getById()
S
74 1 5
getBySubscriptionId()
S
80 1 3
queryById()
S
76 1 4
getTotalDonationCountByGatewayTransactionId()
S
80 1 3
getByGatewayTransactionId()
S
80 1 3
getLatestDonation()
S
72 1 6